import React from 'react';
import { string, object } from 'prop-types';

const propTypes = {
  iconClass: string,
  title: string,
  style: object
};
function NoData({ iconClass, text, style }) {
  return (
    <div className="dfcc" style={style}>
      <i className={`iconfont ${iconClass}`} />
      <span style={{ fontSize: '0.56rem', color: '#999' }}>
        {text ? text : '暂无数据'}
      </span>
    </div>
  );
}
NoData.propTypes = propTypes;
export default NoData;
